#!/usr/bin/env python3.10.6
# -*- coding: utf-8 -*-
# Author: Bobby Sheng <Bobby@sky-cloud.net>
from units.setting import ensure_path_sep
import yaml


def get_config_yaml_data():
    """
    获取所有初始化id，存入缓存
    """

    with open(ensure_path_sep("\\config\\easy_work.yaml"), encoding="utf-8", mode="r") as f:
        result = yaml.load(stream=f, Loader=yaml.FullLoader)
        return result


if __name__ == '__main__':
    import jsonpath

    print(jsonpath.jsonpath(get_config_yaml_data(), "$.userInfo"))
